package ua.soso.ui.mvc;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class ErrorController {
    @RequestMapping(value = "/404.html", method = RequestMethod.GET)
    public String getNotFound() {
        return "404";
    }

    @RequestMapping(value = "/403.html", method = RequestMethod.GET)
    public String getAccessDenied() {
        return "403";
    }
}
